package com.ibeeking.gmc.global.service.common.enums;

public enum WxOpenMaTemplateTypeEnum {
    TEMPLATE_GENERAL(0, "普通模板"),
    TEMPLATE_STANDARD(1, "标准模板");

    private Integer code;
    private String name;

    WxOpenMaTemplateTypeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static String getNameByCode(Integer code) {
        for (WxOpenMaTemplateTypeEnum enumObj : values()) {
            if (enumObj.getCode().equals(code)) {
                return enumObj.getName();
            }
        }
        return null;
    }
}
